package com.newtouch.cq.lang.page;


import java.io.Serializable;

public interface GenericPageAble extends Serializable {

    int CURRENT_DEF = 1;
    int SIZE_DEF = 10;
    String SORT_DEF = "createTime";

    int getCurrent();

    int getSize();

    GenericPageAble setCurrent(int current);

    GenericPageAble setSize(int size);

    GenericPageAble defSort();

    default GenericPageAble setPageRows(int page, int rows) {
        setCurrent(page);
        setSize(rows);
        return this;
    }

}
